const Sequelize = require('sequelize');
const { TableModel, TableData, DialogItem, Devices, Factory, DeviceTypes, Levels } = require('../models/table');

const Op = Sequelize.Op;

const testService = {
    async getTable() {
        return TableModel.findAll();
    },

    async getTableData() {
        return TableData.findAll();
    },

    async getDialogData() {
        return DialogItem.findAll();
    },

    async getDeviceData() {
        return Devices.findAll();
    },

    async getLevelData() {
        return Levels.findAll();
    },

    async getDeviceTypeData() {
        return DeviceTypes.findAll();
    },

    async getFactoryData() {
        return Factory.findAll();
    },
}

module.exports = testService;
